package com.bigShen.pattern.prototype;

import java.io.Serializable;

/**
 * Created by lei.shen on 2018/9/23.
 */
public class JinGuBang implements Serializable{

    private int weight;

    private int height;

    public void big() {
        weight *= 2;
        height *= 2;
    }

    public void small() {
        weight /= 2;
        height /= 2;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return "JinGuBang{" +
                "weight=" + weight +
                ", height=" + height +
                '}';
    }

}
